package com.neusoft.elm.controller;

import com.neusoft.elm.po.Business;
import com.neusoft.elm.po.Food;
import com.neusoft.elm.service.BusinessService;
import com.neusoft.elm.service.FoodService;
import com.neusoft.elm.service.impl.BusinessServiceImpl;
import com.neusoft.elm.service.impl.FoodServiceImpl;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * @Author：ljz
 * @Date：2022/8/22 15:34
 * @Description:
 */
public class FoodController {
    public Object listFoodByBusinessId(HttpServletRequest request) throws Exception {
        Integer orderTypeId = Integer.valueOf(request.getParameter("businessId"));
        FoodService service = new FoodServiceImpl();
        List<Food> list = service.listFoodByBusinessId(orderTypeId);
        return list;
    }
}
